<?php
/**
* 
*/
class BaseResponce
{
	
	protected $_content;
	public function setContent($value){
		$this->_content = $value;
	}
	
	public function getContent(){
		return $this->_content;
	}
	
	protected $_filters;
	public function addFilter($filter){
		if(!in_array($filter)){
			$this->_filters[] = $filter;
		}
	}
	
	public function __construct()
	{
		
	}
	
	
	public function sendContent(){
		$responce = $this->_content;
		
		foreach ($this->_filters as $filter) {
			$responce = $filter->filter($responce);
		}
		
		echo $this->_content;
	}
}